/// id : 202
/// name : "唯美"
/// actionUrl : "eyepetizer://tag/202/?title=%E5%94%AF%E7%BE%8E"
/// adTrack : null
/// desc : null
/// bgPicture : "http://img.kaiyanapp.com/965a0a74d0af871eb174b5c7def6fd6d.jpeg?imageMogr2/quality/60/format/jpg"
/// headerImage : "http://img.kaiyanapp.com/965a0a74d0af871eb174b5c7def6fd6d.jpeg?imageMogr2/quality/60/format/jpg"
/// tagRecType : "NORMAL"
/// childTagList : null
/// childTagIdList : null
/// haveReward : false
/// ifNewest : false
/// newestEndTime : null
/// communityIndex : 0

class TestModel {
  TestModel({
    num? id,
    String? name,
    String? actionUrl,
    dynamic adTrack,
    dynamic desc,
    String? bgPicture,
    String? headerImage,
    String? tagRecType,
    dynamic childTagList,
    dynamic childTagIdList,
    bool? haveReward,
    bool? ifNewest,
    dynamic newestEndTime,
    num? communityIndex,
  }) {
    _id = id;
    _name = name;
    _actionUrl = actionUrl;
    _adTrack = adTrack;
    _desc = desc;
    _bgPicture = bgPicture;
    _headerImage = headerImage;
    _tagRecType = tagRecType;
    _childTagList = childTagList;
    _childTagIdList = childTagIdList;
    _haveReward = haveReward;
    _ifNewest = ifNewest;
    _newestEndTime = newestEndTime;
    _communityIndex = communityIndex;
  }

  TestModel.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _actionUrl = json['actionUrl'];
    _adTrack = json['adTrack'];
    _desc = json['desc'];
    _bgPicture = json['bgPicture'];
    _headerImage = json['headerImage'];
    _tagRecType = json['tagRecType'];
    _childTagList = json['childTagList'];
    _childTagIdList = json['childTagIdList'];
    _haveReward = json['haveReward'];
    _ifNewest = json['ifNewest'];
    _newestEndTime = json['newestEndTime'];
    _communityIndex = json['communityIndex'];
  }

  num? _id;
  String? _name;
  String? _actionUrl;
  dynamic _adTrack;
  dynamic _desc;
  String? _bgPicture;
  String? _headerImage;
  String? _tagRecType;
  dynamic _childTagList;
  dynamic _childTagIdList;
  bool? _haveReward;
  bool? _ifNewest;
  dynamic _newestEndTime;
  num? _communityIndex;

  TestModel copyWith({
    num? id,
    String? name,
    String? actionUrl,
    dynamic adTrack,
    dynamic desc,
    String? bgPicture,
    String? headerImage,
    String? tagRecType,
    dynamic childTagList,
    dynamic childTagIdList,
    bool? haveReward,
    bool? ifNewest,
    dynamic newestEndTime,
    num? communityIndex,
  }) =>
      TestModel(
        id: id ?? _id,
        name: name ?? _name,
        actionUrl: actionUrl ?? _actionUrl,
        adTrack: adTrack ?? _adTrack,
        desc: desc ?? _desc,
        bgPicture: bgPicture ?? _bgPicture,
        headerImage: headerImage ?? _headerImage,
        tagRecType: tagRecType ?? _tagRecType,
        childTagList: childTagList ?? _childTagList,
        childTagIdList: childTagIdList ?? _childTagIdList,
        haveReward: haveReward ?? _haveReward,
        ifNewest: ifNewest ?? _ifNewest,
        newestEndTime: newestEndTime ?? _newestEndTime,
        communityIndex: communityIndex ?? _communityIndex,
      );

  num? get id => _id;

  String? get name => _name;

  String? get actionUrl => _actionUrl;

  dynamic get adTrack => _adTrack;

  dynamic get desc => _desc;

  String? get bgPicture => _bgPicture;

  String? get headerImage => _headerImage;

  String? get tagRecType => _tagRecType;

  dynamic get childTagList => _childTagList;

  dynamic get childTagIdList => _childTagIdList;

  bool? get haveReward => _haveReward;

  bool? get ifNewest => _ifNewest;

  dynamic get newestEndTime => _newestEndTime;

  num? get communityIndex => _communityIndex;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['actionUrl'] = _actionUrl;
    map['adTrack'] = _adTrack;
    map['desc'] = _desc;
    map['bgPicture'] = _bgPicture;
    map['headerImage'] = _headerImage;
    map['tagRecType'] = _tagRecType;
    map['childTagList'] = _childTagList;
    map['childTagIdList'] = _childTagIdList;
    map['haveReward'] = _haveReward;
    map['ifNewest'] = _ifNewest;
    map['newestEndTime'] = _newestEndTime;
    map['communityIndex'] = _communityIndex;
    return map;
  }
}
